package group.hhsw.user_product.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import group.hhsw.common.model.UserProduct;
import group.hhsw.user_product.mapper.UserProductMapper;
import group.hhsw.user_product.service.UserProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author hmj
 * @since 2022-02-24
 */
@Service
public class UserProductServiceImpl extends ServiceImpl<UserProductMapper, UserProduct> implements UserProductService {

    @Autowired
    private UserProductMapper userProductMapper;

    @Override
    public Long getUserPurchaseAmount(String account, String productId) {
        return userProductMapper.getUserPurchaseAmount(account, productId);
    }
}
